home *** CD-ROM | disk | FTP | other *** search
- On 17-Okt-20, Alastair Murray smashed the keyboard with:
- > >>Anyone have any AMOS code for doing a pattern match on a string?
- >> >>e.g. *.AMOS or #?.AMOS to see if a string contains .AMOS in it
- >> >>anywhere.
- >> >>Saves me writing it myself...
- >>
- >> >A=Instr(<string to check>,<string to search for>)
- >>
- >> THAT's NOT A PATTERN MATCH, but a character match
-
- >Yes. A few people have misunderstood me I think.
- >This is what I need.
- >using: #?amos#?pro :as a pattern would respond
- >True for "amos pro" or "amos not pro" or "not amos pro" or "not amos
- >not pro" etc. As long as it has Anything, then the word "amos" then
- >anything else and then the word "pro" and nothing else.... get it?
-
- >No-one programmed anything like this?
- >I know some extension use it (AMCAF) and you can access the Pattern
- >Match in a library somehow but I'd rather let it work with 1.3 dos as
- >well.
-
- Just a note.
- Easylife + pattern.library runs on 1.3 too...
-
- --
- Happy greetings, Yours..
- __________________________________________________________________________
- /_ __/ __ / __ /\ ___\ __ \__ _\ aka. JENS VANG PETERSEN
- / / / /_/ / ____/ \ \___\ __ \ \ \ Nyvej 8, DK-4450 Jyderup, Denmark
- /_/ /_____/_/ \_____\_\ \_\ \_\ top_cat@post8.tele.dk
- --------------------------------------------------------------------------
- CChheecckk yyoouurr dduupplleexx sswwiittcchh..
- --------------------------------------------------------------------------
-
-
-